MSYNC

Section: System Calls (2)
Updated: November 19, 1989
Index Return to Main Contents
 

NAME

msync - sync pages to disk.  

SYNOPSIS

int msync(addr, len)
caddr_t addr;
int len;
 

DESCRIPTION

Msync takes an address range and forces the pages containing the range to disk. The call will return after the pages are written to disk. After the call, the pages will no longer be valid in memory.

If the page is locked in memory it will be unlocked for the msync call. By using msync and mlock it is possible for the user to control the page-in/page-out process.  

RETURN VALUE

Msync returns 0 if the call is successful. Otherwise they return -1 and an error code is returned in errno.  

SEE ALSO

mmap(2), mlock(2), munlock(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:51:40 GMT, January 31, 2023